//
//  DEBottonBtn.m
//  DE
//
//  Created by PEIYANG on 16/9/23.
//  Copyright © 2016年 YP. All rights reserved.
//

#import "DEBottonBtn.h"

@implementation DEBottonBtn

- (void)layoutSubviews{
    [super layoutSubviews];
    
    //设置图片
    self.imageView.yp_y = self.yp_height * 0.1;
    self.imageView.yp_centerX = self.yp_width * 0.5;
    
    //设置文字的size
    [self.titleLabel sizeToFit];
    //设置文字
    self.titleLabel.yp_centerX = self.yp_width * 0.5;
    self.titleLabel.yp_y = self.imageView.yp_bottom;
    
    
}

@end
